<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>发布商品 - 二手平台</title>
    <link rel="stylesheet" href="css/style.css">
</head>
<body>
<nav>
    <a href="/index.html">首页</a>
    <a href="/products.html">浏览商品</a>
    <a href="/publish.html">发布商品</a>
    <a href="/dashboard.html">我的商品</a>
    <a href="#" id="logoutBtn">退出登录</a>
</nav>
<div class="container">
    <h2>发布新商品</h2>
    <form id="publishForm" enctype="multipart/form-data">
        <input type="text" id="title" placeholder="商品标题" required>
        <input type="number" id="price" placeholder="价格" required>
        <textarea id="description" placeholder="商品描述" required></textarea>
        <input type="file" id="image" accept="image/*">
        <button type="submit">发布</button>
    </form>
    <div id="msg"></div>
</div>
<script src="js/api.js"></script>
<script src="js/publish.js"></script>
</body>
</html>
